home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-27 | 441 b | 16 lines | [TEXT/ttxt] |
- format debug "-- Compiling findSXKey Function . . .\n" undefined undefined
-
- function findSXKey theScript theKey ->
- (
- local myKey := ("--SX" + theKey) as string
- local sxOffset := findRange theScript myKey
- if sxOffset = 0 do
- return undefined
- local args := #(theScript,2,sxOffset,999)
- if (findNthContext args @word) then
- return (getRange theScript (args[3]+1) args[4])
- else
- return undefined
- )
- #(undefined,undefined,#("findSXKey"))
-